
build:

install:
	mkdir --parents ${PREFIX}/usr/local/bin
	cp snapshot.sh ${PREFIX}/usr/local/bin/snapshot
	mkdir --parents ${PREFIX}/etc
	cp snapshot.conf ${PREFIX}/etc/snapshot.conf
	mkdir --parents ${PREFIX}/etc/cron.hourly
	echo "/usr/local/bin/snapshot" > ${PREFIX}/etc/cron.hourly/snapshot
	chmod u+x ${PREFIX}/etc/cron.hourly/snapshot

post:
	echo "POST"
	echo "  30 *  *  *  *  snapshot" >> ${PREFIX}/etc/crontab
